<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>渐变色纸张绘制</title>
    <style>
      .paper {
        width: 800px;
        height: 600px;
        padding: 0 20px;
        background-image: linear-gradient(to bottom, transparent 49px, #ccc 49px, transparent 50px), linear-gradient(to bottom, #feebf5, #fff, #feebf5);
        background-size: auto 50px, auto auto;
        background-clip: content-box, padding-box;
      }

      .paper h1,
      p {
        line-height: 50px;
        margin: 0;
      }

      h1 {
        text-align: center;
      }
    </style>
  </head>
  <body>
    <div class="paper">
      <h1>径向渐变实现纸张效果</h1>

      <p>1、创建一个长方形</p>

      <p>2、绘制从上向下的渐变色背景</p>

      <p>3、绘制纸张的横线</p>

      <p>4、设置横线与纸张左右两边有一定间距</p>

      <p>5、添加h1标签，制作内容标题，并让标题水平居中</p>

      <p>6、添加p标签，添加内容</p>

      <p>7、让文字相对行居中对齐（将文字包裹在容器.content中，然后向上移动20px）</p>
    </div>
  </body>
</html>
